﻿<Controls:WorkBaseControl x:Class="SimpleSpreadsheet.Views.WorkbookView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="clr-namespace:SimpleSpreadsheet.Framework"
             xmlns:Controls="clr-namespace:SimpleSpreadsheet.Controls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Controls:WorkBaseControl.CommandBindings>
        <CommandBinding Command="New" Executed="CommandBinding_ExecutedNew" />
        <CommandBinding Command="Open" Executed="CommandBinding_ExecutedOpen" />
        <CommandBinding Command="Save" Executed="CommandBinding_ExecutedSave" />
    </Controls:WorkBaseControl.CommandBindings>
    <Grid>
        <StackPanel>
            <Menu IsMainMenu="True">
                <MenuItem Header="File">
                    <MenuItem Header="_New" Command="New"></MenuItem>
                    <MenuItem Header="_Open" Command="Open"></MenuItem>
                    <MenuItem Header="_Save" Command="Save"></MenuItem>
                </MenuItem>
            </Menu>
            <ContentControl x:Name="ActiveItem" />
        </StackPanel>
    </Grid>
</Controls:WorkBaseControl>
